# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2024/3/31
desc: 
sample: 
"""
import jsonpath
import requests

host = 'http://121.11.97.201:9088/'
def cookie():
    url =host+'/pinter/bank/api/login'
    data={'userName':'admin','password':'1234'}
    session = requests.session()
    res = session.post(url=url,data=data)
    print(res)
    url=host+'/pinter/bank/api/query?userName=admin'
    res= session.get(url)
    print(res.text)

if __name__ == '__main__':
    cookie()